package edu.gatech.volt2.drdoommgt.system;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class DataStore {
	
	
	
	
	private DataStore(){
	}
	
	
	public static EntityManager getEm(){
		EntityManager em = null;
		try{
			EntityManagerFactory emf = Persistence.createEntityManagerFactory("domain");
			em = emf.createEntityManager();
		}catch(Throwable t){
			// Something didn't work.. these should work... fail
			t.printStackTrace();
		}
		return em;
	}
}
